import { ComponentStyle, DiyComponent } from '@/components/DiyEditor/util'

/** 图片展示属性 */
export interface ImageBarProperty {
  // 图片链接
  imgUrl: string
  imgHeight:number
  // 跳转链接
  url: string
  fixed:boolean
  // 组件样式
  style: ComponentStyle
  height: number
  txtPadding:number
  weight:boolean
  txtFontSize:number
  txtHeight:number
  showTxt:boolean
  txt:string
  txtColor:string
  showSpan:boolean
  spanColor:string
  spanPadding:number
  spanHeight:number
  sTop:number
  spanFontSize:number
  endTime:string
  startTime:string
  spanWeight:number
  spanTxt:string
  skillTxtColor:string
  skillFontSize:number
  skillWeight:boolean
}

// 定义组件
export const component = {
  id: 'ImageBar',
  name: '图片展示',
  icon: 'ep:picture',
  property: {
    imgUrl: '',
    url: '',
    style: {
      bgType: 'color',
      bgColor: '#fff',
    } as ComponentStyle
  }
} as DiyComponent<ImageBarProperty>
